import { createApp } from 'vue'
import App from './App.vue'
import '@/styles/main.less'
import 'virtual:uno.css'
import { router } from '@/router'
import { store } from '@/store'
import { setupGlobalDirectives } from '@/directives'
import { registerGlobComp } from '@/components/registerGlobComp'
import { init } from '@/sql/db'

async function bootstrap() {
  const app = createApp(App);
  //registerGlobComp(app);
  app.use(router)
  app.use(store)
  setupGlobalDirectives(app)
  app.mount('#app')
  init()
}

bootstrap();



